package Interface;


import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.AbstractAction;

import Interface.PantallaPrincipal;


public class Menu2Action extends AbstractAction {

	private static final long serialVersionUID = 1L;
	private PantallaPrincipal frame;
	
	public Menu2Action(PantallaPrincipal frame){
		super();
		putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_M));
		this.frame=frame;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		
		frame.cambiarCU(new Menu2(frame));
    }
	

}
